import { RouterModule } from '@angular/router';

import { UserMainComponent } from './user-main/user.component';
import { StudentComponent } from '../student/student.component';
import { TeacherComponent } from '../teacher/teacher.component';
import { ParentsComponent } from '../parents/parents.component';

export const userRoutes = [
	{
		path: '',
		component: UserMainComponent,
		children: [
			{ path: '', redirectTo: 'student', pathMatch: 'full' },
			{ path: 'student', component: StudentComponent },
			{ path: 'teacher', component: TeacherComponent },
			{ path: 'parents', component: ParentsComponent }
		]
	}
];